import logo from '../img/logo.png'
import a from './a'
require('@babel/polyfill')	//js高级语法
require('../css/main.scss')

/* 图片测试 */
let image = new Image()
image.src = logo
document.body.appendChild(image)

//测试接口数据模拟
let xhr = new XMLHttpRequest()
xhr.open('GET','/user',true)
xhr.onload=()=> {
	console.log(xhr.response)
}
xhr.send()

//测试webpack环境变量(实际上是windows下的全局变量)
console.log('host:'+GLOBAL.host)

//测试抽离的文件
console.log(a)